package com.anywhere.freightman.common.entity;

import java.util.List;

public class TableData {
    private long total;
    private List<Object> rows;

    public TableData() {
    }


    public TableData(long total, List<Object> rows) {
        this.total = total;
        this.rows = rows;
    }

    public static TableData build(long total, List<Object> objects) {
        return new TableData(total, objects);
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<Object> getRows() {
        return rows;
    }

    public void setRows(List<Object> rows) {
        this.rows = rows;
    }
}
